#include"include.h"
int main()
{
   char test[] = {0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf1, 0x23, 0x45,
      0x67, 0x89, 0xab, 0xcd, 0xef, 0x12, 0x34, 0x56, 0x78, 0x9a};\

   printf("Encoding:\\x12\\x34\\x56\\x78\\x9a\\xbc\\xde\\xf1\\x23\\x45\\x67\\x89\\xab\\xcd\\xef\\x12\\x34\\x56\\x78\\x9a\n");
   printf("Should match: %%124Vx%%9A%%BC%%DE%%F1%%23Eg%%89%%AB%%CD%%EF%%124Vx%%9A\n");
   char *escape = urlencode((unsigned char *) test, 20);
   printf("We get:       %s\n", escape);
   
   mystr *s = malloc(sizeof(mystr));
   s->s = malloc(1);
   s->s[0] = '0';
   s->len = strlen(s->s);
   s->maxlen = 2;
   s = mystrcats(s, "2\n");
   printf("%s", s->s);

   return 0;
}
